otutil: Note that ot_log_structured takes a printf format
authorColin Walters <walters@verbum.org>
Tue, 25 Oct 2016 17:11:12 +0000 (13:11 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Oct 2016 17:02:01 +0000 (17:02 +0000)
This notably fixes compilation with CLang.

Closes: #548
Approved by: jlebon

src/libotutil/ot-log-utils.h

index 5e0502ab5509c27d796c70d5fe6c78171b4c6e0b..8d9786de9f1815a868c4ddb9a3b2692c2fd3e41b 100644 (file)
@@ -26,6 +26,6 @@ G_BEGIN_DECLS
 
 void ot_log_structured_print_id_v (const char *message_id,
                                    const char *format,
-                                   ...);
+                                   ...) G_GNUC_PRINTF(2, 3);
 
 G_END_DECLS